Using Declared Objects

Global variables
Global variables are objects declared outside a class structure. These objects can be used in the "initial", "equations" or "terminal" section of a model without specifying the section name.

Example:

OBJ NrOfComponents "The number of biological components considered in the WWTP models";
Model parameters
Parameters are declared in the "parameter" section. When used in the "initial", "equations" or "terminal" section these objects are to be preceded by the section name.

Example

parameters.T = parameters.T1 + parameters.T2;
Model variables
Independent, interface or state variables are model variables declared in the "independent", "interface" or "state" section of the model. When used in the "initial", "equations" or "terminal" section, these objects are to be preceded by their section name.

Example

state.y = independent.t * 0.01;
interface.y_M = state.Q_In;
state.e = parameters.y_S - interface.y_M;